#include<stdio.h>
int main()
{
	int a[10]={1,2,3,4,5,6,7,8,9,10};
	int *p,*q;
	p=&a[1];
	q=&a[8];
	scanf("%d",&p);
	printf("%d",*p);
	scanf("%d",&q);
	printf("%d",*q);
 } 
